package com.mrd.gtimpframe.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * T_BIZ_REJECT_RECORD_REASON_REF
 * @author dusy  2017-07-31
 * 驳回记录与驳回原因的关系
 */
public class RejectRecordReasonRef extends RejectRecordReasonRefKey implements Serializable {
    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 创建人
     */
    private String creator;

    /**
     * 状态
     */
    private String status;

    /**
     * T_BIZ_REJECT_RECORD_REASON_REF
     */
    private static final long serialVersionUID = 1L;

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator == null ? null : creator.trim();
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", createTime=").append(createTime);
        sb.append(", creator=").append(creator);
        sb.append(", status=").append(status);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    public RejectRecordReasonRef(String applyReasonId,String rejectRecordId, String userId) {
        this.setRejectReasonId(applyReasonId);
        this.setRejectRecordId(rejectRecordId);
        this.createTime = new Date();
        this.creator = userId;
    }
}